package com.leyou.user.api;

import com.leyou.user.pojo.User;
import org.springframework.web.bind.annotation.*;

/**
 * @author CHERRY
 * @date 2018-09-16-19:28
 */
@RequestMapping
public interface UserApi {
    /**
     * 登录用户
     *
     * @param username
     * @param password
     * @return
     */
    @GetMapping("login")
    User login(@RequestParam("username") String username,
               @RequestParam("password") String password);
}
